package com.hnjowe.util;

import com.octo.captcha.service.captchastore.FastHashMapCaptchaStore;
import com.octo.captcha.service.image.DefaultManageableImageCaptchaService;
import com.octo.captcha.service.image.ImageCaptchaService;

/**
 * @实例一个jcaptcha服务
 * @projectname：cocotour
 * @packagename：com.hnjowe.util
 * @filename：CaptchaServiceSingleton.java
 * @date：2011-3-21 下午02:30:06
 * @author: wangxiuwu
 */
public class ImageCaptchaServiceSingleton {

	private static ImageCaptchaService instance 
			= new DefaultManageableImageCaptchaService(
					new FastHashMapCaptchaStore(),
					new ImageCaptchaEngine(),
					180,
					100000,
					75000);
	
	private static ImageCaptchaService instanceStore 
	= new DefaultManageableImageCaptchaService(
			new FastHashMapCaptchaStore(),
			new ImageCaptchaEngine(),
			180,
			100000,
			75000);
    
    public static ImageCaptchaService getInstance(){
        return instance;
    }
    public static ImageCaptchaService getInstanceStore(){
        return instanceStore;
    }
}
